﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


public class XSocetInfoBase
{
    public SocketEventType eventType;

    public static int GetEventId(NetWorkState state)
    {
        return EventID.Socket_Base + (int)state;
    }
}

public class XSocetInfoNet: XSocetInfoBase
{
    public NetWorkState stateBase;//SocketEventType.Base的值
    public string infoBase;//SocketEventType.Base的值
}

public class XSocetInfoStream : XSocetInfoBase
{
    public byte[] infoStream;//SocketEventType.Stream的值
}

